/* 
有趣的自适等宽高图片布局
核心样式overflow:hidden;
width:100%
*/
/* 
搜索框样式 
*/
input:focus{
  outline: none;
}
input{
  line-height: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  margin: 0;
  background-color: white;
}
.input{
  width: 10rem !important;
  text-indent: 0.5rem;
}
.submit{
  width: 2rem;
  border-radius: 50%;
  background-image: url(../images/search.svg);
  background-size: cover;
  background-position: center;
  cursor: pointer;
}
form{
  display: flex;
  width: 12rem;
  height: 2rem;
  border-radius: 1rem;
  background-color:white;
  overflow: hidden;
  box-shadow: 0 0 0 0.05rem black;
}
/* 
img_box
*/
.headline {
  display: flex;
  justify-content: center;
  align-items: center;
}

.headline>a {
  min-width: 4rem;
  margin: 2rem 1rem;
  padding: 0.5rem;
  border: 0.1rem solid #0294b4;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
}

.headline>a:hover {
  background-color: #0294b4;
  color: white;
}

.img_box {
  margin-bottom: 6rem;
}

/* 
.img_container>[class$="_img"]
*/
.img_container {
  width: 90%;
  margin: 0 auto;
}

.img_container>.img_box {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
  justify-content: space-evenly;
}

/* 
_img
*/

.img {
  display: flex;
  align-items: flex-end;
  position: relative;
  min-width: 20rem;
  min-height: 15rem;
  background-size: cover;
  margin: 1vw 1vw;
  box-shadow: 0 0 0.3rem 0.1rem rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

.img>img {
  width: 100%;
}

.img_att {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  position: absolute;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.425);
  transform: translate(0, 50%);
  transition: transform 0.25s;
}

.img_att a {
  padding: 0.2rem 0.5rem;
  margin-bottom: 0.5rem;
  border: 1px solid #f8f2ab;
  color: #f8f2ab;
  transition: color 0.1s, box-shadow 0.1s;
}

.img_att p {
  width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
  color: gainsboro;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.img_att a:hover {
  box-shadow: 0 0 1rem 0 white;
  color: #d5fc96;
}

.img:hover .img_att {
  transform: translate(0, 0%);
}


/* 
按钮
 */
/* 列表圆点 */
.pagination {
  display: flex;
  justify-content: center;
  color: #333;
  font-size: 20px;
  margin-top: 30px;
}

.pagination:hover {
  cursor: pointer;
}

.pagination li {
  width: 1.5rem;
  height: 1.5rem;
  line-height: 1.5rem;
  padding: 0.5rem;
  border: 1px solid #333333;
  display: block;
  margin-right: 10px;
  text-align: center;
  border-radius: 15%;
}

.pagination li.active {
  background: #5a98de;
  color: #fff;
  border: 1px solid #5a98de;
}